package com.yunhe.assist.service;

import com.alibaba.fastjson.JSONObject;
import com.yunhe.assist.domain.ParkIntroduce;
import com.yunhe.assist.model.ParkIntroduceSubmitVO;

public interface ParkIntroduceService {

    //新增
    void createParkIntroduce (ParkIntroduce parkIntroduce);
    void createParkIntroduce(ParkIntroduceSubmitVO vo);

    //删除
    int deleteParkIntroduce(int id);

    //更新
    void updateParkIntroduce(ParkIntroduce parkIntroduce);
    void updateParkIntroduce(ParkIntroduceSubmitVO vo);

    //根据主键 id 查询
    ParkIntroduce findParkIntroduceById(int id);

    //根据园区 id 查询
    ParkIntroduce findParkIntroduceByParkId(long parkId);

    //根据园区 id 查询园区介绍是否已存在
    boolean existByParkId(long parkId);

    //根据园区 id 查询园区介绍详情
    JSONObject findDetailByParkId(long parkId);

}